home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / boosters.arc / GETSTR.PAS < prev    next >
Pascal/Delphi Source File  |  1980-01-01  |  3KB  |  84 lines

  1. { ------------------------------------------------
  2.   GETSTR reads string at X,Y into S for length LEN
  3.   ------------------------------------------------ }
  4.   Procedure GETSTR (    HV : Char;
  5.                      VAR S : AnyString;
  6.                          X : ColumnType;
  7.                          Y : RowType;
  8.                        LEN : Integer);
  9.  
  10. {                    If X=Y=0, then read begins at current cursor
  11.                      position.  Otherwise read begins at (X,Y).
  12.                      On exit, cursor points to one beyond last
  13.                      byte read.   }
  14. begin
  15.    InLine ( $1E/
  16.             $8B/$46/$08/
  17.             $09/$C0/
  18.             $74/$0E/
  19.             $FE/$C8/
  20.             $8B/$56/$06/
  21.             $FE/$CA/
  22.             $8A/$F0/
  23.             $86/$D6/
  24.             $EB/$07/$90/
  25.             $30/$FF/
  26.             $B4/$03/
  27.             $CD/$10/
  28.             $8E/$46/$0C/
  29.             $8B/$7E/$0A/
  30.             $8B/$4E/$04/
  31.             $26/$88/$0D/
  32.             $47/
  33.             $51/
  34.             $8A/$DE/
  35.             $30/$FF/
  36.             $8B/$C3/
  37.             $B1/$07/
  38.             $D3/$E0/
  39.             $B1/$05/
  40.             $D3/$E3/
  41.             $01/$C3/
  42.             $8A/$C2/
  43.             $30/$E4/
  44.             $D1/$E0/
  45.             $01/$C3/
  46.             $59/
  47.             $8B/$F3/
  48.             $BB/$49/$04/         { mov   bx,449h        video byte offset   }
  49.             $31/$C0/             { xor   ax,ax          ax = 0              }
  50.             $8E/$D8/             { mov   ds,ax          video byte seg      }
  51.             $8A/$07/             { mov   al,[bx]        get byte            }
  52.             $3C/$07/             { cmp   al,7           mono?               }
  53.             $75/$06/             { jne   graphx         no                  }
  54.             $BA/$00/$B0/         { mov   dx,0B000h      regen for mono      }
  55.             $EB/$04/$90/         { jmp   contin                             }
  56.                          { graphx:                                          }
  57.             $BA/$00/$B8/         { mov   dx,0B800h      regen for graphics  }
  58.             $8E/$DA/     { contin: mov   ds,dx                              }
  59.             $8B/$56/$0E/
  60.             $80/$FA/$76/
  61.             $74/$0B/
  62.             $80/$FA/$56/
  63.             $74/$06/
  64.             $BA/$02/$00/
  65.             $EB/$04/$90/
  66.             $BA/$A0/$00/
  67.             $3E/$8A/$04/
  68.             $AA/
  69.             $01/$D6/
  70.             $E2/$F8/
  71.             $80/$FA/$02/
  72.             $74/$04/
  73.             $81/$EE/$9E/$00/
  74.             $8B/$C6/
  75.             $31/$D2/
  76.             $BB/$A0/$00/
  77.             $F7/$F3/
  78.             $D0/$EA/
  79.             $8A/$F0/
  80.             $B4/$02/
  81.             $CD/$10/
  82.             $1F/
  83.             $5D);
  84. end;